package com.shensi.adminCollect.domain.station;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.shensi.adminCollect.common.annotation.Excel;
import com.shensi.common.core.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 油站充值对象 station_recharge
 * 
 * @author qujia
 * @date 2022-04-17
 */
public class StationRecharge extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long rechargeId;

    /** 充值金额 */
    @Excel(name = "充值金额")
    private BigDecimal rechargeAmt;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal rechargeBalance;

    /** 充值时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "充值时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rechargeTime;

    /** 用户id，系统内部分配，来源于app_user_info */
    @Excel(name = "用户id，系统内部分配，来源于app_user_info")
    private Long userId;

    /** 油企id */
    @Excel(name = "油企id")
    private Long enterpriseId;

    /** 油站id */
    @Excel(name = "油站id")
    private Long stationId;

    /** 计算时使用，保存时为当天的最后时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计算时使用，保存时为当天的最后时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rechargeEndTime;

    public void setRechargeId(Long rechargeId) 
    {
        this.rechargeId = rechargeId;
    }

    public Long getRechargeId() 
    {
        return rechargeId;
    }
    public void setRechargeAmt(BigDecimal rechargeAmt) 
    {
        this.rechargeAmt = rechargeAmt;
    }

    public BigDecimal getRechargeAmt() 
    {
        return rechargeAmt;
    }
    public void setRechargeBalance(BigDecimal rechargeBalance) 
    {
        this.rechargeBalance = rechargeBalance;
    }

    public BigDecimal getRechargeBalance() 
    {
        return rechargeBalance;
    }
    public void setRechargeTime(Date rechargeTime) 
    {
        this.rechargeTime = rechargeTime;
    }

    public Date getRechargeTime() 
    {
        return rechargeTime;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setEnterpriseId(Long enterpriseId) 
    {
        this.enterpriseId = enterpriseId;
    }

    public Long getEnterpriseId() 
    {
        return enterpriseId;
    }
    public void setStationId(Long stationId) 
    {
        this.stationId = stationId;
    }

    public Long getStationId() 
    {
        return stationId;
    }
    public void setRechargeEndTime(Date rechargeEndTime) 
    {
        this.rechargeEndTime = rechargeEndTime;
    }

    public Date getRechargeEndTime() 
    {
        return rechargeEndTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("rechargeId", getRechargeId())
            .append("rechargeAmt", getRechargeAmt())
            .append("rechargeBalance", getRechargeBalance())
            .append("rechargeTime", getRechargeTime())
            .append("userId", getUserId())
            .append("enterpriseId", getEnterpriseId())
            .append("stationId", getStationId())
            .append("rechargeEndTime", getRechargeEndTime())
            .toString();
    }
}
